package com.example.petshop.service;

import com.example.petshop.entity.Cart;
import com.example.petshop.entity.User;

import java.util.List;

public interface CartService {
  //  boolean addToCart(Integer goodsId, Integer cartId);

    List<Cart> getAllCarts();

    boolean deleteCartById(Integer cartid);

    boolean deleteCartsByIds(List<Integer> cartids);

    boolean addToCart(Integer goodsId,String goodsName,String description,String images,String price,Integer shopId, Long userId,Integer quantity);

    List<Cart> getCartsByUserId(Long userId);

    boolean updateCartQuantity(Integer cartid, Integer quantity);
}